<?php require_once('../../core/import.php');?>
<?php User::Permission('ACCOUNT_LICENCE_UPDATE'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
 	<script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/kindeditor/import.kindeditor.js"></script>
    <script type="text/javascript" src="scripts/edit.js"></script>
</head>

<body>
	<?php
    #赋值检测
    if(!is_numeric($ID=Functions::UrlArgs('id'))) exit('信息ID不正确');
    
    #获取数据
    $Data=DB::GetRowByID('licence',$ID);
    {
	?>
    <form id="Form1" name="Form1" method="post" action="edit.action.php" enctype="multipart/form-data" class="Form">
        <fieldset>
            <legend>修改证书</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
                <td width="130" height="25" align="left"><font color="red">* </font>账户：</td>
                <td width="915" colspan="2">
                    <input type="hidden" id="ID" name="ID" value="<?php echo $Data['ID'];?>" />
                    <input type="text" id="Account" name="Account"  value="<?php echo $Data['Account'];?>" class="Textbox" readonly="readonly"/>
                </td>
            </tr>
             <tr>
                <td width="130" height="25" align="left"><font color="red"> * </font>证书名称：</td>
                <td width="915" colspan="2">
                    <input type="text" id="Name" name="Name"  value="<?php echo $Data['Name'];?>" class="Textbox" />
                </td>
            </tr>
             <tr>
                <td width="130" height="25" align="left"><font color="red"> * </font>发证机关：</td>
                <td width="915" colspan="2">
                    <input type="text" id="Authority" name="Authority" value="<?php echo $Data['Authority'];?>" class="Textbox" />
                </td>
            </tr>
           
             	<td height="25" align="left" valign="middle"><font color="red"> * </font>缩略图：</td>
            	<td colspan="2"><input type="File" id="PicturePath" name="PicturePath" class="Textbox" />
                  <?php if($Data['PicturePath']){?>
                  <a href="<?php echo Config::PATH_RELATIVE_ATTACHMENT_TEMP.'/'.$Data['PicturePath']; ?>" target="_blank">点击查看</a>
                  <?php }?>
                  </td>
            </tr>
            </table>
        </fieldset>
        <input id="ActionButton" name="ActionButton" type="submit" value="确定" class="button" /> 
        <input id="ResetButton" name="ResetButton" type="reset" value="重置" class="button" />
    </form>
    <?php	
    }
    $Data=NULL;
	?>
</body>
</html>